#ifndef WMAIN_H
#define WMAIN_H

#include <QDeclarativeEngine>
#include <QDeclarativeView>
#include <QDeclarativeContext>
#include <QSettings>
#include <QGraphicsObject>
#include <QSettings>
#include <QDebug>
#include <QTimer>
#include <QDBusInterface>
#include <QApplication>
#include <QFile>

#include "networkdetails.h"

class QDBusMessage;

class WMain : public QObject
{
    Q_OBJECT
public:
    explicit WMain(QWidget *parent = 0);

public slots:
    void wlanScanResults(const QDBusMessage &status);
    void addNetwork(QString essid, QString bssid, int channel,QString org);
    void startScan();
    QString getOrg(QString oui);

private:
    QDeclarativeView *view;
    QDeclarativeContext *rootContext;
    QSettings *settings;
    QList<QObject*> networksList;
};

#endif // WMAIN_H
